package com.innovation.chengzhangriji.http;

import com.innovation.chengzhangriji.Config;
import com.innovation.chengzhangriji.ConfigurationManager;
import com.innovation.library.http.InnovationRequestImpl;

public abstract class BaseRequest extends InnovationRequestImpl {

    public static final String PATH;
    public static final String SHARE_PATH;

    static {
//        switch (com.innovation.chengzhangriji.Flavors.URL_TYPE) {
//            case Config.URL_DEV:
//                PATH = "http://babydiarydev.chinacloudapp.cn/";
//                SHARE_PATH = "http://dev.chengzhangrj.com/";
//                break;
//            case Config.URL_TEST:
//                PATH = "http://babydiaryint.chinacloudapp.cn/";
//                SHARE_PATH = "http://int.chengzhangrj.com/";
//                break;
//            case Config.URL_OFFICIAL:
//                PATH = "http://api.chengzhangrj.com/";
//                SHARE_PATH = "http://www.chengzhangrj.com/";
//                break;
//            default:
//                PATH = "http://babydiary.trafficmanager.cn/";
//                SHARE_PATH = "http://www.chengzhangrj.com/";
//                break;
//        }
        PATH = Config.getConfig(ConfigurationManager.ROOT_URL);
        SHARE_PATH = Config.getConfig(ConfigurationManager.SHARE_PATH);
    }

}
